//
//  NetService.h
//  Ruique
//
//  Created by xiute on 2018/10/28.
//  Copyright © 2018 cuijin. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^CompleteResponse)(BOOL success, NSError  * _Nullable error, NSURLSessionDataTask *dataTask, id __nullable response);

NS_ASSUME_NONNULL_BEGIN

@interface NetService : NSObject

+ (instancetype)shareInstance;

- (NSURLSessionDataTask *)getUrl:(NSString *)url
                           param:(id __nullable)param
                        Complete:(CompleteResponse)complet;

@end

NS_ASSUME_NONNULL_END
